package com.springboot.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class PropertiesBean {
	@Value("${server.port}")
	private String serverPort;

	@Value("${environment}")
	private String environment;

	@Value("${spring.datasource.driverClassName}")
	private String mysqlDriverClassName;

	@Value("${spring.datasource1.url}")
	private String db1Url;

	@Value("${spring.datasource1.username}")
	private String db1User;

	@Value("${spring.datasource1.password}")
	private String db1Password;

	@Value("${spring.datasource2.url}")
	private String db2Url;

	@Value("${spring.datasource2.username}")
	private String db2User;

	@Value("${spring.datasource2.password}")
	private String db2Password;

	public String getMysqlDriverClassName() {
		return mysqlDriverClassName;
	}

	public void setMysqlDriverClassName(String mysqlDriverClassName) {
		this.mysqlDriverClassName = mysqlDriverClassName;
	}

	public String getDb1Url() {
		return db1Url;
	}

	public void setDb1Url(String db1Url) {
		this.db1Url = db1Url;
	}

	public String getDb1User() {
		return db1User;
	}

	public void setDb1User(String db1User) {
		this.db1User = db1User;
	}

	public String getDb1Password() {
		return db1Password;
	}

	public void setDb1Password(String db1Password) {
		this.db1Password = db1Password;
	}

	public String getDb2Url() {
		return db2Url;
	}

	public void setDb2Url(String db2Url) {
		this.db2Url = db2Url;
	}

	public String getDb2User() {
		return db2User;
	}

	public void setDb2User(String db2User) {
		this.db2User = db2User;
	}

	public String getDb2Password() {
		return db2Password;
	}

	public void setDb2Password(String db2Password) {
		this.db2Password = db2Password;
	}

	public String getServerPort() {
		return serverPort;
	}

	public void setServerPort(String serverPort) {
		this.serverPort = serverPort;
	}

	public String getEnvironment() {
		return environment;
	}

	public void setEnvironment(String environment) {
		this.environment = environment;
	}

}
